package cn.htcode.mybatisplus01.Injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.metadata.TableInfo;
import org.apache.ibatis.session.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: Mr_he
 * @BelongsProject:homework
 * @BelongsPackage:cn.htcode.mybatisplus01.Injector
 * @CreateTime:2024-12-28
 * @Version:1.0
 */
@Component
public class MySqlInjector extends DefaultSqlInjector {
    @Override
    public List<AbstractMethod> getMethodList(Configuration configuration, Class<?> mapperClass, TableInfo tableInfo) {
        //默认的Mybatis-plus的注入方法
        List<AbstractMethod> methodList = super.getMethodList(configuration, mapperClass, tableInfo);
        //添加自己的ListAll类
//        methodList.add(new ListAll());
        return methodList;
    }
}
